﻿using System.Collections.ObjectModel;
using MaxStoreErp.Core.BaseClasses;
using MaxStoreErp.Core.Commands;
using MaxStoreShop.Domain.Directories;

namespace MaxStoreShop.CoreModule.Users
{
    internal class UsersViewModel : ViewModelBase
    {
        public RelayCommand ChangePhotoCommand { get; set; }
        public RelayCommand ChangePasswordCommand { get; set; }
        ObservableCollection<StoreUser> _users;
        StoreUser _selectedUser;

        public ObservableCollection<StoreUser> Users
        {
            get { return _users; }
            set { OnPropertyChanged(ref _users, value, "Users"); }
        }

        public StoreUser SelectedUser
        {
            get { return _selectedUser; }
            set { OnPropertyChanged(ref _selectedUser, value, "SelectedUser"); }
        }
    }
}
